package org.xiexiake.dao.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.io.Serializable;

/**
 * 评论表(Critic)表实体类
 *
 * @author makejava
 * @since 2021-04-24 16:53:11
 */
@SuppressWarnings("serial")
public class Critic extends Model<Critic> {

  //评论id
  private Integer id;
  //评论的内容
  private String text;
  //写该评论的用户
  private Integer createUserId;
  //文章id
  private Integer articleId;
  //该评论的上级评论
  private Integer parentId;

  private Integer xiajiId;


  public Integer getId() {
    return id;
  }

  public void setId(Integer id) {
    this.id = id;
  }

  public String getText() {
    return text;
  }

  public void setText(String text) {
    this.text = text;
  }

  public Integer getCreateUserId() {
    return createUserId;
  }

  public void setCreateUserId(Integer createUserId) {
    this.createUserId = createUserId;
  }

  public Integer getArticleId() {
    return articleId;
  }

  public void setArticleId(Integer articleId) {
    this.articleId = articleId;
  }

  public Integer getParentId() {
    return parentId;
  }

  public void setParentId(Integer parentId) {
    this.parentId = parentId;
  }

  public Integer getXiajiId() {
    return xiajiId;
  }

  public void setXiajiId(Integer xiajiId) {
    this.xiajiId = xiajiId;
  }

  /**
   * 获取主键值
   *
   * @return 主键值
   */
  @Override
  protected Serializable pkVal() {
    return this.id;
  }
}
